﻿using System;
namespace Bit.Art.Core.Models
{
    /// <summary>
    /// 与后台数据库交互的消息基类
    /// </summary>
    public class DataMessageBase
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public int Type { get; set; }

        public enum MessageType
        {
            /// <summary>
            /// 更新用户余额
            /// </summary>
            UpdateBalance = 1,
            /// <summary>
            /// 获取订单详情
            /// </summary>
            GetOrderDetails = 2,
            /// <summary>
            /// 获取挂单列表
            /// </summary>
            GetOpenOrders = 3,
            /// <summary>
            /// 更新交易对
            /// </summary>
            UpdateMarket = 4
        }
    }
}
